﻿<classes>
  <class name="Invoice" assembly="XmlTest.BO" table="UE_tbInvoice" displayName="UE_InvoiceDisplayName">
    <property name="InvoiceID" type="Guid" readWriteRule="WriteNew" compulsory="true" />
    <property name="InvoiceString" databaseField="InvoiceStringDbColName" default="InvoiceStringDefaultValue" compulsory="true" 
				displayName="InvoiceStringDispName" description="InvoiceStringDescription" keepValuePrivate="true" autoIncrementing="false" >
      <rule name="InvoiceString">
        <add key="minLength" value="5" />
        <add key="maxLength" value="255" />
        <add key="patternMatch" value="####" />
        <add key="patternMatchMessage" value="PattenMatchMessage" />
      </rule>
      <simpleLookupList>
        <item display="StdDisplay" value="StdValue" />
        <item display="SpecDisplay" value="SpecValue" />
        <item display="SimpleDisplay" value="SimpleValue" />
      </simpleLookupList>
    </property>
    <property name="InvoiceBool" type="Boolean" />
    <property name="InvoiceDate" type="DateTime">
      <rule name="InvoiceDate">
        <add key="min" value="01/01/2010" />
        <add key="max" value="01/31/2010" />
      </rule>
    </property>
    <property name="InvoiceDecimal" type="Decimal">
      <rule name="InvoiceDecimal">
        <add key="min" value="1.1" />
        <add key="max" value="1000.1" />
      </rule>
    </property>
    <property name="InvoiceDouble" type="Double">
      <rule name="InvoiceDouble">
        <add key="min" value="1" />
        <add key="max" value="10000" />
      </rule>
    </property>
    <property name="InvoiceItemID" type="Guid" databaseField="UE_InvoiceNoDBColName" displayName="UE_Invoice No Displat Name" description="UE_InvoiceNo descr" />
    <property name="InvoiceInt32" type="Int32">
      <rule name="InvoiceInt32">
        <add key="min" value="1" />
        <add key="max" value="32" />
      </rule>
    </property>
    <property name="InvoiceInt64" type="Int64">
      <rule name="InvoiceInt64">
        <add key="min" value="1" />
        <add key="max" value="64" />
      </rule>
    </property>
    <property name="InvoiceSingle" type="Single">
      <rule name="InvoiceSingle">
        <add key="min" value="1" />
        <add key="max" value="100" />
      </rule>
    </property>
    <property name="InvoiceTimeSpan" type="TimeSpan" />
    <primaryKey>
      <prop name="InvoiceID" />
    </primaryKey>
  </class>
  <class name="InvoiceItem" assembly="XmlTest.BO" displayName="Invoice Item">
    <property name="InvoiceItemID" type="Guid" readWriteRule="WriteNew" databaseField="InvoiceItemIDColName" compulsory="true" displayName="Invoice Item ID Disp Name" description="Invoice Item ID desc" />
    <primaryKey>
      <prop name="InvoiceItemID" />
    </primaryKey>
  </class>
</classes>